package com.yike.user.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 设备表
 *
 * @author Sakura
 * @since 2024-11-26
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "设备参数")
public class MachineParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("代理商ID")
    @NotNull(message = "代理商ID不能为空")
    private Long agentId;

    @ApiModelProperty("店铺ID")
    private Long shopId;

    @ApiModelProperty("设备信息")
    @NotEmpty(message = "设备信息不能为空")
    private List<BaseMachineParam> machines;

}
